<!DOCTYPE html>
<html lang="en">
<head>
	<title>登录</title>
    <#include "../common.ftl" />
	<link href="${ticket.contextPath}/static/admin/css/signin.css" rel="stylesheet">

</head>
<body id="bbb">
	<div class="container">
		<form class="form-signin" method="post">
        <h3 class="form-signin-heading" >登录</h3><h4 style="color: red;">${tips!}</h4>
        <label for="inputUserName" class="sr-only">用户名</label>
        <input type="text" id="inputUserName" class="form-control" name="username" placeholder="UserName" required autofocus>
        <label for="inputPassword" class="sr-only">密码</label>
        <input type="password" id="inputPassword" class="form-control" name="password" placeholder="Password" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" name="remember" > 记住我
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" onclick="subForm()" style="background-color: pink;border-color:pink">Let's Go</button>
      </form>
	</div>
	<script>
    	 $(window.parent.document).find("#myiframe").load(function(){
            var main = $(window.parent.document).find("#myiframe").height();
            $("#bbb").height(main);
        });
    	 function subForm() {
             var url="${ticket.contextPath}/admin/login";
             var form = $("#userForm");
             form.submit();
         }
    </script>
</body>
</html>